package org.test14;

public class Suai extends Thread{
    public Suai(){
        super();
    }
    public Suai(String name){
        super(name);
    }

    @Override
    public void run() {
        System.out.println("开始采集");
        while (true){
            try {
                for (int i = 1 ;i < 10 ;i++){
                    Thread.currentThread().isInterrupted();
                }
                Thread.sleep(2000);
                System.out.println("采集数量");
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
